-- GENERATED SPELL FOR [Silithid Harvester] --


function spell0_3253(pUnit, Event) --@Harvest Swarm,Heal--
pUnit:FullCastSpellOnTarget(7277,pUnit)
pUnit:RegisterEvent('Sorts_3253', 3000, 1)
end

function spell1_3253(pUnit, Event) --@Summon Harvester Swarm,Self--
pUnit:FullCastSpellOnTarget(7278,pUnit)
pUnit:RegisterEvent('Sorts_3253', 581, 1)
end

function Sorts_3253(pUnit, Event)
local choix_sorts_3253 = math.random(0, 1)
if choix_sorts_3253 == 0 then
pUnit:RegisterEvent('spell0_3253', 1, 1)
end
if choix_sorts_3253 == 1 then
pUnit:RegisterEvent('spell1_3253', 1, 1)
end
end

function mob3253_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3253', math.random(1500, 3000), 1)
end

function mob3253_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3253_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3253_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3253, 1, 'mob3253_Action')
RegisterUnitEvent(3253, 2, 'mob3253_Leave')
RegisterUnitEvent(3253, 3, 'mob3253_Kill')
RegisterUnitEvent(3253, 4, 'mob3253_Die')
